/*
 * 
 * author     date                    function                 purpose
 * wuwentao   20111122             base structure               */


package com.badlogicgames.framwork;

import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;

public class GameObject {
	public Vector2 position;
	public final Rectangle bounds;

	public GameObject (float x, float y, float width, float height) {
		this.position = new Vector2(x, y);
		this.bounds = new Rectangle(x - width / 2, y - height / 2, width, height);
	}
	
	public Vector2 getPosition(){
		return position;
	}
	
	public void setPosition(float x, float y){
		this.position.x=x;
		this.position.y=y;
	}
}
